//
//  BzgztCell.swift
//  Auscultation
//
//  Created by 来 on 2020/12/9.
//

import UIKit

class BzgztCell: UICollectionViewCell {
    
    var tzzx: UILabel!
    var sj: UILabel!
    var status_i: UIImageView!
    var status_l: UILabel!
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        self.backgroundColor = UIColor.white
        
        tzzx = UILabel.init()
        tzzx.lgf_AddShowAllText()
        tzzx.text = "停诊中心-001"
        tzzx.font = UIFont.systemFont(ofSize: 16)
        tzzx.textColor = UIColor.init(lgf_HexString: "222222")
        addSubview(tzzx)
        tzzx.snp.makeConstraints { (make) in
            make.top.equalTo(25)
            make.left.equalTo(17)
        }
        
//        let image_view = UIImageView.init(image: #imageLiteral(resourceName: "shijian@1.5x"))
//        contentView.addSubview(image_view)
//        image_view.snp.makeConstraints { (make) in
//            make.top.equalTo(tzzx.snp.bottom).offset(15)
//            make.left.equalTo(tzzx)
//            make.width.height.equalTo(12)
//        }

        sj = UILabel.init()
        sj.text = ""
        sj.lgf_AddShowAllText()
        sj.font = UIFont.systemFont(ofSize: 12)
        sj.textColor = UIColor.init(lgf_HexString: "8D969D")
        addSubview(sj)
        sj.snp.makeConstraints { (make) in
            make.top.equalTo(tzzx.snp.bottom).offset(15)
            make.left.equalTo(tzzx)
        }
        
        status_i = UIImageView.init(image: #imageLiteral(resourceName: "shenhewancheng@1.5x"))
        status_i.contentMode = .scaleAspectFill
        addSubview(status_i)
        status_i.snp.makeConstraints { (make) in
            make.right.equalTo(-30)
            make.centerY.equalToSuperview().offset(-10)
            make.width.height.equalTo(25)
        }
        
        status_l = UILabel.init()
        status_l.text = ""
        status_l.lgf_AddShowAllText()
        status_l.font = UIFont.systemFont(ofSize: 12)
        status_l.textColor = UIColor.init(lgf_HexString: "0F88F2")
        addSubview(status_l)
        status_l.snp.makeConstraints { (make) in
            make.top.equalTo(status_i.snp.bottom).offset(5)
            make.centerX.equalTo(status_i)
        }
        
        let line3 = UIView.init()
        line3.backgroundColor = UIColor.init(lgf_HexString: "F1F2F4")
        addSubview(line3)
        line3.snp.makeConstraints { (make) in
            make.centerX.bottom.equalToSuperview()
            make.width.equalToSuperview().offset(-34)
            make.height.equalTo(1)
        }
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}
